ActionScript 3 for Wii on your PC

This page provides information about the code and classes required to use a Wiimote with your PC. The classes required to use a Wiimote with your PC are known as WiiFlash. WiiFlash was developed by Joa Ebert and Thibault Imbert for fun. The WiiFlash project has a web home at WiiFlash, this project is constantly being updated so it would be a good idea to check it out occasionally. The WiiFlash project is divided into two parts:
  • WiiFlash Server (C++ or .NET server that handles Wiimote communication)
  • WiiFlash ActionScript API (SWC component)

In our project we are interested in using the ActionScript API. This is perfect for us as ActionScript is what we know.

To setup up WiiFlash on your PC:


download_wiiflash.jpg
  • Unzip the zip file
  • Find the file to install the WiiFlash server (for PC) in WiiFlash 0[1].4.5 > WiiFlash 0.4.5 > Servers > WiiFlashServer 0.4.5.exe
  • After you have installed the server connect the Wiimote to your PC

To start using WiiFlash in Adobe Flash CS3:

  • Connect your Wiimote to the PC
  • Start WiiFlash server
  • Open Flash :-)
  • Locate and open the file WiiFlash 0[1].4.5 > WiiFlash 0.4.5 > Examples > Wiimote Demo.fla
  • Press Ctrl-Enter to test the flash file, press any of the buttons on the Wiimote to see a result in the application.
  • At the moment you can't use the Wiimote as a mouse pointer. You may notice a small WiiFlash Server icon in the Windows task bar that has the option Mouse Control - this does in fact turn your Wiimote into a pointer - but I strongly recommend that you don't select this option as you can't turn it off unless you turn off the Wiimote. If you turn off the Wiimote you will need to reconnect it through the Bluetooth settings again.

Looking at the source code of Wiimote_demo.fla